package com.tbit.uqbike.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tbit.uqbike.object.pojo.UserAuthLog;
import com.tbit.uqbike.object.pojo.dto.UserAuthLogDTO;
import com.tbit.uqbike.object.value.LoginInfo;
import com.tbit.common.entity.view.PageResult;
import com.tbit.common.entity.view.Result;

import java.util.Date;

/**
 * @Author:BUGTian
 * @DATE: 2022/9/23
 */
public interface UserAuthLogService extends IService<UserAuthLog> {
    /**
     * 分页查询
     *
     * @param page
     * @param size
     * @param accountId
     * @param adAccountId
     * @param userName
     * @param phone
     * @param configId
     * @param state
     * @return
     */
    Result<PageResult<UserAuthLog>> queryPage(Integer page, Integer size, Integer accountId, Integer adAccountId, String userName, String phone, Integer configId, Integer state, Date startTime, Date endTime);

    /**
     * 审核
     *
     * @param login
     * @param userAuthLogDTO
     * @return
     */
    Result audit(LoginInfo login, UserAuthLogDTO userAuthLogDTO);

    /**
     * 清除用户特殊认证记录
     *
     * @param userId
     * @return
     */
    Result cleanUserAuth(Integer userId);

    /**
     * 根据id获取用户特殊认证记录
     *
     * @param userId 用户id
     */
    UserAuthLog selectByUserId(Integer userId);
}
